#include <iostream>
#include <map>
#include <string>

using namespace std;
int main(int argc, char **argv)
{
	map<char ,char*> mymap;
	mymap['c'] = "Charley";
	mymap['b'] = "Bob";
	mymap['r'] = "Richard";
	//mapSize
	cout <<"MyMapSize = "  << mymap.size() <<endl;
	//insert new key and value
	mymap.insert(pair<int, char*>('j',"Jimmy"));
	map<char ,char*>::iterator it;
	for (it= mymap.begin() ; it != mymap.end() ; ++it)
	{
		cout << "MyMap[" << it->first << "] = " << it->second <<endl;
	}
	char uIn;
	cout << "Please enter a letter: ";
	cin >> uIn;
	cout <<endl;
	if (mymap.find(uIn) != mymap.end())
		cout << mymap.find(uIn)->second << endl;
	system("pause");
}

